package com.puzzletest.net;

import android.app.ProgressDialog;
import android.content.Context;

public class Util {
	
	public static ProgressDialog show_process(Context context, String msg,
			Boolean... param) {
		ProgressDialog dialog = new ProgressDialog(context);
		dialog.setProgressStyle(android.R.attr.progressBarStyleSmall);
		dialog.setMessage(msg);
		if (param.length > 0) {
			dialog.setCancelable(param[0]);
		} else {
			dialog.setCancelable(true);
		}
		return dialog;
	}
}
